# 继承
class Person(object):
    name = '小狗'

    def __init__(self, a, b):
        self.a = a
        self.b = b

    def dump(self):
        print(f'{self.name} is dumping')


class Animal(Person):
    def test(self):
        return self.a + self.b
